//
//  ViewController.m
//  HCCATransition
//
//  Created by 王恕 on 16/3/4.
//  Copyright © 2016年 王恕. All rights reserved.
//

#import "ViewController.h"
#import "HCCATransition.h"

@interface ViewController ()

@property (nonatomic, weak) HCCATransition *transitionView;

@end

@implementation ViewController

-(HCCATransition *) transitionView{
    if (_transitionView == nil) {
        HCCATransition *transitionView = [HCCATransition transitionView];
        _transitionView = transitionView;
        
        transitionView.frame = CGRectMake(0, 200, 375, 182);
        
        [self.view addSubview:transitionView];
    }
    
    return _transitionView;
}

- (void)viewDidLoad {
    [super viewDidLoad];
    [self transitionView];
}


- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
